VERSION 5.00
Begin VB.Form frmFTPdetail 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "FTP: Connection details"
   ClientHeight    =   3915
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7230
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   3915
   ScaleWidth      =   7230
   Begin VB.TextBox txtFTPUser 
      Height          =   495
      Left            =   3960
      TabIndex        =   10
      Top             =   1680
      Width           =   2895
   End
   Begin VB.TextBox txtFTPPassword 
      Height          =   495
      IMEMode         =   3  'DISABLE
      Left            =   3960
      PasswordChar    =   "*"
      TabIndex        =   9
      Top             =   2280
      Width           =   2895
   End
   Begin VB.TextBox txtFTPHostname 
      BeginProperty DataFormat 
         Type            =   0
         Format          =   "###.###.###.###"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   1033
         SubFormatType   =   0
      EndProperty
      Height          =   495
      Left            =   3960
      TabIndex        =   8
      Top             =   960
      Width           =   2895
   End
   Begin VB.TextBox txtFTPRemoteFolder 
      Height          =   495
      Left            =   3960
      TabIndex        =   7
      Top             =   2880
      Width           =   2895
   End
   Begin VB.PictureBox Picture1 
      Height          =   1935
      Left            =   360
      Picture         =   "frmFTPDetail.frx":0000
      ScaleHeight     =   1875
      ScaleWidth      =   1995
      TabIndex        =   6
      Top             =   1080
      Width           =   2055
   End
   Begin VB.CommandButton cmdFTPOK 
      Caption         =   "&OK"
      Height          =   375
      Left            =   6000
      TabIndex        =   0
      Top             =   3480
      Width           =   855
   End
   Begin VB.Line Line1 
      DrawMode        =   1  'Blackness
      X1              =   3000
      X2              =   6600
      Y1              =   1560
      Y2              =   1560
   End
   Begin VB.Label Label5 
      Caption         =   "Remote Folder:"
      Height          =   375
      Left            =   2760
      TabIndex        =   5
      Top             =   3000
      Width           =   1455
   End
   Begin VB.Label Label4 
      Caption         =   "Host name:"
      Height          =   495
      Left            =   2760
      TabIndex        =   4
      Top             =   1080
      Width           =   1335
   End
   Begin VB.Label Label3 
      Caption         =   "Password:"
      Height          =   375
      Left            =   2760
      TabIndex        =   3
      Top             =   2400
      Width           =   1335
   End
   Begin VB.Label Label2 
      Caption         =   "User name:"
      Height          =   375
      Left            =   2760
      TabIndex        =   2
      Top             =   1800
      Width           =   1215
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "FTP Connection Details"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   0
      TabIndex        =   1
      Top             =   120
      Width           =   7095
   End
End
Attribute VB_Name = "frmFTPdetail"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdFTPOK_Click()
    ftpHostname = txtFTPHostname
    ftpUsername = txtFTPUser
    ftpPassword = encodepass(txtFTPPassword)
    ftpremoteFolder = txtFTPRemoteFolder
    WriteFTPSetting (App.Path & "\FTPSetting.ini")
    Unload Me
End Sub

Private Sub Form_Load()
    ReadFTPSetting (App.Path & "\FTPSetting.ini")
    txtFTPHostname = ftpHostname
    txtFTPUser = ftpUsername
    txtFTPPassword = ftpPassword
    txtFTPRemoteFolder = ftpremoteFolder
    
End Sub

